import type { Emitter } from 'mitt'
import mitt from 'mitt'
import type { ToolItem } from '@/views/Home/components/data'

/** 全局公共事件需要在此处添加类型 */
type Events = {
  openAiTool: ToolItem
  openByTag: boolean
}

export const emitter: Emitter<Events> = mitt<Events>()
